package com.ruoyix.im.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyix.common.core.domain.PageQuery;
import com.ruoyix.common.core.page.TableDataInfo;
import com.ruoyix.im.domain.ImChatGroup;
import com.ruoyix.im.domain.bo.ImChatGroupBo;
import com.ruoyix.im.domain.vo.ImChatGroupVo;


import java.util.Collection;
import java.util.List;

/**
 * 聊天群Service接口
 *
 * @author ruoyi
 * @date 2024-05-27
 */
public interface IImChatGroupService extends IService<ImChatGroup> {

    /**
     * 查询聊天群
     */
    ImChatGroupVo queryById(Long id);

    /**
     * 查询聊天群列表
     */
    TableDataInfo<ImChatGroupVo> queryPageList(ImChatGroupBo bo, PageQuery pageQuery);

    /**
     * 查询聊天群列表
     */
    List<ImChatGroupVo> queryList(ImChatGroupBo bo);

    /**
     * 新增聊天群
     */
    Boolean insertByBo(ImChatGroupBo bo);


    /**
     * 修改聊天群
     */
    Boolean updateByBo(ImChatGroupBo bo);

    /**
     * 校验并批量删除聊天群信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    void createGroupCommon(ImChatGroup imChatGroup);

    public void creatGroupTopic(ImChatGroup imChatGroup);

    public void updateGroup(ImChatGroup imChatGroup);

    public void deleteGroup(Long id);

    public void addGroupTopic(Long id);

    public List<ImChatGroupVo> listGroups();
}
